-
Notifications
You must be signed in to change notification settings - Fork 378
Prototype for rejecting MSAL cached token based on AuthOperation #5567
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Not sure what the purpose for this is, but you cannot add a method to an itnerface. See #5376 |
|
|
||
| MsalAccessTokenCacheItem cachedAccessTokenItem = await GetCachedAccessTokenAsync().ConfigureAwait(false); | ||
|
|
||
| // Validate the cached token using the authentication operation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be on request base?
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
| <Compile Include="AuthScheme\MsalCacheValidationData.cs" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert all changes
| /// </summary> | ||
| /// <param name="cachedTokenItem"></param> | ||
| /// <returns></returns> | ||
| bool ValidateCachedToken(MsalCacheValidationData cachedTokenItem); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
naming - how about AcceptCachedToken ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And maybe make it async from the start? :)
Fixes #
Changes proposed in this request
Testing
Performance impact
Documentation